package svgedit.gui.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import svgedit.gui.Frame;

public class SaveAction extends AbstractAction{
	
	private Frame frame;

    /** Create this action for the given frame */
    public SaveAction(Frame frame) {
        super("Save");
        this.frame = frame;
    }

	@Override
	public void actionPerformed(ActionEvent arg0) 
	{
		if(frame.view.getSaveState()!= 0)
		{
			new SaveAsUtil().SaveAs(frame);	
		}
		
	}


}
